import request from '@/utils/axios';
/**
 * 
 * @param url 
 * @param data 
 * @returns 
 * @description POST请求
 */
export const POST = (url:string, data?:any) =>request({url,method: 'POST',data:data});
/**
 * 
 * @param url 
 * @param data 
 * @returns 
 * @description GET请求
 */
export const GET = (url:string, data?:any) =>request({url,method: 'GET',params:data});
/**
 * 
 * @param url 
 * @param data 
 * @returns 
 * @description PUT请求
 */
export const PUT = (url:string, data:any) => request({url,method: 'PUT',data:data})
/**
 * 
 * @param url 
 * @param data 
 * @returns 
 * @description DELETE请求
 */
export const DELETE = (url:string, data:any) =>request({url,method: 'DELETE',data:data});